package com.icss.pojo;

import lombok.Data;

import java.util.List;

@Data
public class R {
    String code;
    Object data;
    String message;

    public static R error(String message) {
        R r = new R();
        r.code = "20001";
        r.message = message;
        return r;
    }

    public static R success(List<CityPojo> clist) {
        R r = new R();
        r.code = "20000";
        r.message = "success";
        r.data = clist;
        return r;
    }
}
